using Pdf2epub.Model;
using System.ComponentModel;

namespace Pdf2epub
{
    public class TextReplacement : BaseObject
    {
        private string m_OriginalText;

        private string m_ReplacementText;

        [DisplayName("Original Text")]
        public string OriginalText
        {
            get { return m_OriginalText; }
            set
            {
                m_OriginalText = value;
                OnPropertyChanged("OriginalText");
            }
        }

        [DisplayName("Replacement Text")]
        public string ReplacementText
        {
            get { return m_ReplacementText; }
            set
            {
                m_ReplacementText = value;
                OnPropertyChanged("ReplacementText");
            }
        }

        public override string ToString()
        {
            return string.Format("'{0}' -> '{1}'", OriginalText, ReplacementText);
        }
    }
}